package com.share.configuration;

import com.share.config.CosProperties;
import com.share.template.CosTemplate;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
@EnableConfigurationProperties({CosProperties.class})
public class CosAutoConfiguration {
    @Bean
    public CosTemplate wechatLoginTemplate(CosProperties properties){
        return new CosTemplate(properties);
    }
}
